﻿namespace Devonline.MessageQueue.RabbitMQ;

/// <summary>
/// RabbitMQ 消息队列终结点
/// </summary>
public interface IRabbitMQEndpoint : IMessageQueueEndpoint, IAuthEndpoint, IEndpoint
{
    /// <summary>
    /// 默认交换器名称
    /// </summary>
    string Exchange { get; set; }
}

/// <summary>
/// RabbitMQ 消息队列终结点设置
/// </summary>
public class RabbitMQEndpoint : MessageQueueEndpoint, IRabbitMQEndpoint, IMessageQueueEndpoint, IAuthEndpoint, IEndpoint
{
    /// <summary>
    /// 默认交换器名称
    /// </summary>
    public string Exchange { get; set; } = null!;
}